package com.showgood.util {
	import com.showgood.config.PopupConfig;
	import com.showgood.core.AbstractMediator;
	import mx.core.IFlexDisplayObject;
	/**
	 * 弹窗的容器
	 * @author BianPeng
	 */
	public class PopupHolder {
		private var _popup:IFlexDisplayObject;	// 弹窗
		private var _cfg:PopupConfig;	// 优先级
		private var _m:AbstractMediator;
		
		public function PopupHolder(popup:IFlexDisplayObject, 
				cfg:PopupConfig, m:AbstractMediator) {
			_popup = popup;
			_cfg = cfg;
			_m = m;
		}
		public function get window():IFlexDisplayObject { return _popup; }
		public function get privilege():int { return _cfg.privilege; }
		public function get mcls():Class { return _cfg.mcls; }
		public function get mediator():AbstractMediator { return _m; }
	}
}
